//varying float fogFactor; 
varying float alpha;

void main()
{
    /*const float LOG2 = 1.442695;
    float z = (gl_FragCoord.z / gl_FragCoord.w);
    float fogFactor = exp2( -gl_Fog.density * 
                       gl_Fog.density * 
                       z * 
                       z * 
                       LOG2 );
    fogFactor = clamp(fogFactor, 0.0, 1.0);*/
    //fogFactor = 0.0;

    //gl_FragColor = mix(gl_Fog.color, gl_Color, fogFactor );
    gl_FragColor = gl_Color;
    gl_FragColor.a = alpha;
}